export function getList(params) {
	return uni.$u.http.get('/mat/matdeviceinfo/getDevicePage', {params})
}

export function getRecords(params) {
	return uni.$u.http.get('/mat/mattransferinfo/getMatTransferInfoList', {params})
}

export function getAgentInfo(agentMobile){
	return uni.$u.http.post(`/mat/matdeviceinfo/agentInfo?agentMobile=${agentMobile}`)
}

export function transferDevice(params){
	return uni.$u.http.post('/mat/mattransferinfo/agentStartTkTransfer', params)
}

export function transferDevice2(params){
	return uni.$u.http.post('/mat/mattransferinfo/agentTkTransfer', params)
}

export function cancelTransfer(params){
	return uni.$u.http.post('/mat/mattransferinfo/revokeTransfer', params)
}

export function acceptTransfer(params){
	return uni.$u.http.post('/mat/mattransferinfo/receiveTransfer', params)
}